package com.javasm.entity;

import java.io.Serializable;

/**
 * @author WangJie
 * @version 1.0
 * @Description:
 * @date: 2020/7/15 15:45
 * @since JDK 1.8
 */
public enum ReturnCode implements Serializable {

    SUCCESS("200","操作成功"),
    ERROR("500","操作失败");

    private String code;
    private String msg;

    ReturnCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
